home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
v cisle
/
hexer
/
mpth_17.exe
/
{app}
/
scripts
/
Jump forward.mps
< prev
next >
Wrap
Text File
|
2006-05-01
|
558b
|
22 lines
INCLUDE '*.lng'
= jump x bytes backward
option opt5, 'internal,31':= set an icon for this script
IF (CURRENTFILE == '')
END
ENDIF
VAR offs LONGWORD
IF (NOT REGREAD('HKEY_SETTINGS\scripts','Jump offset', @offs))
offs = INPUTNUMBER(__SJO1__)
REGWRITE 'HKEY_SETTINGS\scripts', 'Jump offset', offs
ENDIF
= increment absoluteposition of current file
VAR abspos SIGQWORD fcur FILE
fcur = FILEOPEN('::current')
abspos = FILEGETPROP(fcur, 'AbsolutePosition')
INC abspos, offs
FILESETPROP fcur, 'Absoluteposition', abspos
FILECLOSE fcur